package de.mrclrchtr.education.account

import de.mrclrchtr.education.account.jooq.tables.pojos.Role
import de.mrclrchtr.education.account.service.RoleService
import de.mrclrchtr.education.account.service.UserService
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class AccountRoleTests {


    @Autowired
    private lateinit var roleService: RoleService

    @Test
    fun updateRole() {
        println(roleService.updateRole(Role(1, "admin"), listOf(1, 2, 3)))
    }


    @Test
    fun deleteRole() {
        println(roleService.deleteRoleById(4))
    }


}
